package com.ruoyi.classification.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.classification.mapper.ShClassificationMapper;
import com.ruoyi.classification.domain.ShClassification;
import com.ruoyi.classification.service.IShClassificationService;
import com.ruoyi.common.core.text.Convert;

/**
 * 多级分类管理Service业务层处理
 * 
 * @author GGB
 * @date 2021-09-23
 */
@Service
public class ShClassificationServiceImpl implements IShClassificationService 
{
    @Autowired
    private ShClassificationMapper shClassificationMapper;

    /**
     * 查询多级分类管理
     * 
     * @param id 多级分类管理ID
     * @return 多级分类管理
     */
    @Override
    public ShClassification selectShClassificationById(Long id)
    {
        return shClassificationMapper.selectShClassificationById(id);
    }

    /**
     * 查询多级分类管理列表
     * 
     * @param shClassification 多级分类管理
     * @return 多级分类管理
     */
    @Override
    public List<ShClassification> selectShClassificationList(ShClassification shClassification)
    {
        return shClassificationMapper.selectShClassificationList(shClassification);
    }

    /**
     * 新增多级分类管理
     * 
     * @param shClassification 多级分类管理
     * @return 结果
     */
    @Override
    public int insertShClassification(ShClassification shClassification)
    {
        return shClassificationMapper.insertShClassification(shClassification);
    }

    /**
     * 修改多级分类管理
     * 
     * @param shClassification 多级分类管理
     * @return 结果
     */
    @Override
    public int updateShClassification(ShClassification shClassification)
    {
        return shClassificationMapper.updateShClassification(shClassification);
    }

    /**
     * 删除多级分类管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShClassificationByIds(String ids)
    {
        return shClassificationMapper.deleteShClassificationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除多级分类管理信息
     * 
     * @param id 多级分类管理ID
     * @return 结果
     */
    @Override
    public int deleteShClassificationById(Long id)
    {
        return shClassificationMapper.deleteShClassificationById(id);
    }
}
